package com.ruoyi.quartz.task;

import com.ruoyi.quartz.crawl.CrawlJdPage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component("CrawlTask")
public class CrawlTask {

    public void crawlJd(){
        try {
            CrawlJdPage crawlJdPage = new CrawlJdPage("\\crawl_log\\log1");
            crawlJdPage.start(1);
        } catch (Exception e) {
            log.error("Exception:", e);
        }
    }
}
